<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="js/layui/css/layui.css">


</head>
<body>
<h1>测试文件上传到服务器</h1>

<img id="poster" width="500" height="500">
<input type="file" id="file" class="fileBtn" name="file" data-img="poster">
<input type="hidden" id="posterurl">


<a href="javascript://" onclick="downloadFileByForm()">下载zip包</a>

</body>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/layui/layui.js"></script>
<script src="js/upload.js"></script>
<script src="js/test.js"></script>
<script>
    var FILEROOTPATH = window.location.origin + "/files/";
</script>
</html>